package com.semicolon_dtn_student;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.Button;

public class MainActivity extends Activity {

	boolean id_flag = false;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    	setContentView(R.layout.main);
    	
        Button button_main_schedule = (Button)findViewById(R.id.button_main_schedule);
        Button button_main_setting = (Button)findViewById(R.id.button_main_setting);
        Button button_main_exit = (Button)findViewById(R.id.button_main_exit);
        
        button_main_schedule.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {					
				
				Intent intent =  new Intent("android.intent.action.SCHEDULE_MAIN");
				startActivity(intent);		
			}
       });
        
        button_main_setting.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {					
					
			}
       });
        
        
        button_main_exit.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {					
				finish();
			}
       });
        
    }
    
    public void manualClick(View v) {
       	Intent intent = new Intent(this, manualmenu.class);
    	startActivity(intent);
    }
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
}
